-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return longest text after failing to detect text longer than the configured value #423
Return longest text after failing to detect text longer than the configured value #423
Conversation
@gijsk Ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor nit, with that this looks good. Thanks!
Readability.js
Outdated
}); | ||
|
||
// But first check if we actually have something | ||
if (this._attempts[0].textLength === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this just if (!this._attempts[0].textLength)
?
Done! |
Readability.js
Outdated
@@ -1112,7 +1112,7 @@ Readability.prototype = { | |||
}); | |||
|
|||
// But first check if we actually have something | |||
if (this._attempts[0].textLength === 0) { | |||
if (this._attempts[0].textLength) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed out the !
, which unfortunately is quite important...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I would just fix this myself and land manually, but I'm afraid my github fu is really weak and I'm in the middle of something else right now)
Bah! that's what happens when you try to fix a review quickly before lunch :F |
Second attempt at #381. Original PR was #421.
WIP. Will notify once test case is done.